﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Inovout.Web.Helpers
{
    internal static class HtmlContentUtility
    {
        internal static string GetContentPath(string contentPath)
        {
            WebApplication webApplication = ComponentRegistry.Resolve<WebApplication>();
            if (!webApplication.IsDebug)
            {
                contentPath = contentPath.Insert(contentPath.LastIndexOf(".") - 1, "min");
            }
            return contentPath;
        }
    }
}
